#pragma once
#include "Tile.h"

int Tile::width;
int Tile::height;

Tile::Tile()
{

}

Tile::Tile(int newx, int newy,bool newpassable, D3DCOLOR newcolor)
{
	x = newx;
	y = newy;
	passable = newpassable;
	color = newcolor;
}

void Tile::Draw(D3DGraphics &gfx) const
{
	for (int iy = y; iy < y + height; iy++)
	{
		for (int ix = x; ix < x + width; ix++)
		{
			gfx.PutPixel(ix, iy, color);
		}
	}
}

Tile::~Tile()
{

}